package cn.yinzhiping.redislearn.Config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * 向容器中添加resttemplate
 * @author yinzhiping
 */
@Configuration
public class RestTemplateConfig {
    @Bean
    public RestTemplate MyRestTemplate(){
        return new RestTemplate();
    }
}
